import {deleted, get, post, put} from "@/api/client";

/**
 * 查询分页列表
 * @param  data
 */
export const getProjectPage = (data) => {
    return post(`/project/page`, data);
};

/**
 * 修改Project
 * @param  Project
 */
export const updateProject = (data) => {
    return post("/project/updateById", data);
};

/**
 * 添加信息
 * @param  Project
 */
export const addProject = (data) => {
    return post("/project/save", data);
};
/**
 * 删除
 * @param  id
 */
export const deletedProject = (data) => {
    return deleted("/project/delete", data);
};

/**
 * 根据id查询
 * @param  id
 */
export const getProjectById = (id) => {
    return get(`/project/detail`, {id});
};

/**
 * 查询全部列表
 */
export const getProjectList = () => {
    return get(`/project/list`);
};
